//
//  chatViewController.h
//  SoundPill
//
//  Created by 宋旭东 on 16/3/8.
//  Copyright © 2016年 宋旭东. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EMConversation.h"
@interface chatViewController : UIViewController
@property (strong, nonatomic) NSString *chatName;
@property (strong, nonatomic) NSString *chatId;
@property (strong, nonatomic) NSString *chatAvatar;
/*!
 @property
 @brief 聊天的会话对象
 */
@property (strong, nonatomic) EMConversation *conversation;
/*!
 @property
 @brief 如果conversation中没有任何消息，退出该页面时是否删除该conversation
 */
@property (nonatomic) BOOL deleteConversationIfNull;
/*!
 @property
 @brief 加载的每页message的条数
 */
@property (nonatomic) NSInteger messageCountOfPage;
/*!
 @property
 @brief 显示的EMMessage类型的消息列表
 */
@property (strong, nonatomic) NSMutableArray *messsagesSource;
- (instancetype)initWithConversationChatter:(NSString *)conversationChatter
                           conversationType:(EMConversationType)conversationType;
- (void)checkMessageAvatar:(NSString *)avatarurl;
@end
